#include <bits/stdc++.h>

using namespace std;

class Solution {
public:
private:
};

int main()
{
	[[maybe_unused]] Solution solu;
	vector vec { vector { 5, 5 }, { 6, 3 }, { 3, 6 } };
	auto comp = [](auto& o1, auto& o2) {
		return o1[0] != o2[0] ? o1[0] - o2[0] : o1[1] - o2[1]; };
	sort(begin(vec), end(vec), comp);
	for (auto& o : vec) printf("(%d,%d)\t", o[0], o[1]);

	return 0;
}
